package com.shenjinzheng.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author shenjinzheng
 * @since 2024-10-08
 */
@RestController
@RequestMapping("/admin")
public class AdminController {
    //todo 获取博客设置
    @PostMapping("/detail")
    public String detail(){
        return "{\n" +
                "  \"success\": true,\n" +
                "  \"message\": null,\n" +
                "  \"errorCode\": null,\n" +
                "  \"data\": {\n" +
                "    \"logo\": \"https://img.quanxiaoha.com/quanxiaoha/f97361c0429d4bb1bc276ab835843065.jpg\",\n" +
                "    \"name\": \"犬小哈的演示博客\",\n" +
                "    \"author\": \"犬小哈\",\n" +
                "    \"introduction\": \"一枚程序员\",\n" +
                "    \"avatar\": \"https://img.quanxiaoha.com/quanxiaoha/1e5a7ec0c3294fdfbdbd40577ba656a2.jpg\",\n" +
                "    \"githubHomepage\": \"https://www.quanxiaoha.com\",\n" +
                "    \"csdnHomepage\": \"https://www.quanxiaoha.com\",\n" +
                "    \"giteeHomepage\": \"https://www.quanxiaoha.com\",\n" +
                "    \"zhihuHomepage\": \"https://www.quanxiaoha.com\"\n" +
                "  }\n" +
                "}";
    }
}
